/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __83F379A9_DDE5_4d26_926E_B0399CAFD801__
#define __83F379A9_DDE5_4d26_926E_B0399CAFD801__

// DRIVER={MySQL ODBC 5.3 ANSI Driver};SERVER=192.168.80.131;PORT=3306;DATABASE=javadb;UID=root;PWD=root;CharSet=UTF8;

namespace xos_odbc
{
    class i_connect_pool;
    class i_connect;

    /////////////////////////////////////////////////////////////////////////////////
    // 
    // 管理接口
    // 
    class i_odbc_mgr : public xos::i_release
    {
    protected:
        virtual ~i_odbc_mgr(){}

    public:
        virtual int connect( void * hWnd, const char * lpszConnectStr, i_connect ** ppDbc ) = 0;
        virtual i_connect_pool * connect_pool( const char * lpszConnectStr ) = 0;
    };

    /////////////////////////////////////////////////////////////////////////////////
    // 
    // export function
    // 
    typedef int ( * f_create )( xos_container::i_container * pContainer, i_odbc_mgr ** ppv );


} // xos_odbc

#endif // __83F379A9_DDE5_4d26_926E_B0399CAFD801__
